export const isLogged = {
    created: async function() {
        const { status, data: { code, msg, user } } = await this.$axios.get('/user/isLogged')
        if (status === 200 && code === 0) {
            this.user = user
        } else {
            this.user = ''
        }
    }
}
